x86/vvmx: Fix WRMSR interception of VMX MSRs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Jun 2017 14:05:35 +0000 (15:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Jun 2017 10:27:50 +0000 (11:27 +0100)
commit46c3acb308bf0cd044b114e637aacaf18b957618
tree404dc1909c154e98b3be3d0859b8b21fe6d64014
parentbbbe89351275ed6ac09207fe9aeb80b606af1a4d
x86/vvmx: Fix WRMSR interception of VMX MSRs

FEATURE_CONTROL is already read with LOCK bit set (so is unmodifiable), and
all VMX MSRs are read-only.  Also, fix the MSR_IA32_VMX_TRUE_ENTRY_CTLS bound
to be MSR_IA32_VMX_VMFUNC, rather than having the intervening MSRs falling
into the default case.

Raise #GP faults if the guest tries to modify any of them.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vvmx.h